<?php
/*
 * @Author: 莫莫
 * @Phone: 13450159681
 * @Description: 
 * @Date: 2024-12-25 22:22:10
 * @LastEditTime: 2024-12-25 22:23:57
 */



namespace app\admin\model\shopro;



use app\admin\model\shopro\Common;

use app\admin\model\shopro\user\User;



class Appointment extends Common

{

    protected $name = 'shopro_appointment';



    protected $type = [

        'images' => 'json'

    ];

    

    protected $append = [

        'status_text'

    ];





    /**

     * 类型列表

     *

     * @return array

     */

    public function statusList()

    {

        return ['0' => '待处理', '1' => '已处理'];

    }



    public function user()

    {

        return $this->belongsTo(User::class, 'user_id', 'id')->field('id, nickname, avatar, mobile');

    }



}

